package edu.cmu.vlis.wassup.databean;

public class Location {
	
	private String city;
	private String state;
	
	public Location(String c, String s) {
		city = c;
		state = s;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Override
	public boolean equals(Object arg0) {
		Location loc = (Location)arg0;
		return city.equals(loc.getCity());
	}
	
	@Override
	public int hashCode() {
		return super.hashCode();
	}
	
	@Override
	public String toString() {
		return "Location - " + city + " " + state;
	}
}
